package com.sjq.model.common;
//upload.file.dir是存放图片的位置，在application.properties中配置，如下：
//upload.file.dir=F:/QualitySupervision/demo_project/src/main/resources/static/imgs/
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component //遗漏
/**
 * @author: sjq
 * @create: 2022-02-21
 **/
public class ConstantImg {


        public static final String Imooc_Mall_User="Imooc_Mall_User";
        //    图片地址
        public static  String Upload_File_Images_Dir;
        public static  String Upload_File_Images_Dir_Copy;
        //    文件地址
        public static  String Upload_File_Dir;
        public static  String Upload_File_Dir_Copy;

        @Value("${upload.file.images.dir}")
        public void setUploadFileImagesDir(String uploadFileImagesDir) {
                Upload_File_Images_Dir = uploadFileImagesDir;
        }
        @Value("${upload.file.images.dircopy}")
        public void setUploadFileImagesDirCopy(String uploadFileImagesDirCopy) {
                Upload_File_Images_Dir_Copy = uploadFileImagesDirCopy;
        }

        @Value("${upload.file.dir}")
        public void setUploadFileDir(String uploadFileDir) {
                Upload_File_Dir = uploadFileDir;
        }
        @Value("${upload.file.dircopy}")
        public void setUploadFileDirCopy(String uploadFileDirCopy) {
                Upload_File_Dir_Copy = uploadFileDirCopy;
        }

}
